#ifndef _DASHBOARD_DASHBOARD_HPP_
#define _DASHBOARD_DASHBOARD_HPP_

#include <QWidget>
#include <QTimer>
#include <QProcess>
#include <QString>
#include <QVector>

class DashBoardWidget : public QWidget {
    Q_OBJECT
public:
    explicit DashBoardWidget( QWidget *parent = nullptr );
    // ~DashBoardWidget();

protected:
    void paintEvent( QPaintEvent *event ) override;
private slots:
    void updateData();
private:
    void fetchSystemStats();
    double cpu_usage;
    double memory_usage;
    QVector<double> cpu_history;
    QVector<double> memory_history;
    QTimer timer;
    QProcess process;

};

#endif
